package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements IOPeration{
    public void work(BookList bookList) {
        System.out.println("打印图书！");
        int useSize = bookList.getUsedSize();
        for(int i = 0;i < useSize;i++){
            Book book = bookList.getBook(i);
            System.out.println(book);
            // book重写了toString方法
        }
    }
}
